projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4244349
)
Don't unref floating menuitems
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 29 Aug 2011 15:57:39 +0000
(11:57 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 29 Aug 2011 15:57:39 +0000
(11:57 -0400)
With recent fixes, GTK+ no longer sinks menu items automatically,
so we have to do it explicitly here.
gtk/tests/action.c
patch
|
blob
|
history
diff --git
a/gtk/tests/action.c
b/gtk/tests/action.c
index dffb5b18febbaa28d8623a101e873219efb2d34b..6617d9521aeb727251a3a9d34fde9c1ae88a1fd7 100644
(file)
--- a/
gtk/tests/action.c
+++ b/
gtk/tests/action.c
@@
-57,6
+57,7
@@
menu_item_label_notify_count (ActionTest *fixture,
GtkWidget *item = gtk_menu_item_new ();
unsigned int emmisions = 0;
+ g_object_ref_sink (item);
g_signal_connect (item, "notify::label",
G_CALLBACK (notify_count_emmisions), &emmisions);